package com.web.controller;

import com.web.pojo.User;
import com.web.service.IUserService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping({"/user"})
public class UserController
{
  @Resource
  private IUserService userService;

  @RequestMapping({"/showUser"})
  @ResponseBody
  public List<User> queryList()
  {
    List listName = this.userService.queryList();
    return listName;
  }
}